﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="adm_survey.aspx.cs" Inherits="adm_survey" Title="Untitled Page" %>
<%@ Register src="UserControls/AdminMenuLeft.ascx" tagname="AdminMenuLeft" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
	<div class="adm-wrap">
		<h3>Surveys</h3>
		<div class="article" style="border:0px">
			<p class="hi"><asp:Label ID="lblGretting" Text="Hi admin Khuong luu" runat="server"></asp:Label></p>
			<p class="hi"><asp:Label ID="lblAlert" runat="server" style="border:solid 1px Gray;padding:3px" Text="aaaaaaaaa" Visible="false"></asp:Label></p>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td class="clstitle">Status</td>
                    <td>
                	    <asp:DropDownList id="drpStatus" CssClass="full" runat="server" onselectedindexchanged="drpStatus_SelectedIndexChanged" 
                            Width="150px">
                	        <asp:ListItem Text="Pending" Value="0"></asp:ListItem>
                	        <asp:ListItem Text="Activated" Value="1"></asp:ListItem>
                	    </asp:DropDownList>
                    </td>   
                </tr>
                <tr>
                    <td class="clstitle">Question</td>
                    <td>
                	    <asp:TextBox ID="txtBodyVn" TextMode="MultiLine" Height="150px" Width="500px" CssClass="ps_message" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtbodyVN" ErrorMessage="Enter Response Option"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td><asp:Button CssClass="submitbutton" Id="btnCommit" runat="server" 
                            Text="Add New Surveys" onclick="btnCommit_Click" />
                        <asp:Button CssClass="submitbutton" Id="btnUpdate" runat="server" 
                            Text="Update Surveys" onclick="btnUpdate_Click" /></td>
                </tr>
            </table>
            <hr />
		    <div class="sort">
			    <ul>
			    <li class='<%= GetActiveClassAll()%>'><a href='<%= _CreateLinkforAll() %>'>All</a></li>
			    <asp:Repeater ID="rptAlphabetSearch" runat="server">
			        <ItemTemplate>
			            <li class='<%# GetActiveClass(Eval("Name").ToString())%>'><a href='adm_survey.aspx?ckid=<%# ckid %>&fn=<%# Eval("Name") %>' ><%# Eval("Name") %></a></li>
			        </ItemTemplate>
			    </asp:Repeater>
			    </ul>
			</div>
		    
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr class="first">
                    <td width="61%">Question</td>
                    <td width="11%">Status</td>
                    <td width="28%">Action</td>   
                </tr>
                <asp:Repeater ID="rptSurvey" runat="server">
                    <ItemTemplate>
                        <tr class="second">
                            <td><%# Eval("Question") %></td>
                            <td><%# BindStt(byte.Parse(Eval("Status").ToString()))%></td>
                            <td><%# CreateEditDeleteCommentLink(int.Parse(Eval("QID").ToString()), Eval("Question").ToString())%></td>
                        </tr>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <tr class="second_se">
                            <td><%# Eval("Question") %></td>
                            <td><%# BindStt(byte.Parse(Eval("Status").ToString()))%></td>
                            <td><%# CreateEditDeleteCommentLink(int.Parse(Eval("QID").ToString()), Eval("Question").ToString())%></td>
                        </tr>
                    </AlternatingItemTemplate>
                </asp:Repeater>
            </table>
		</div>
	</div>
	<div class="clear"></div>
  <!--//Content-->
</asp:Content>

